<?php

use think\facade\Route;
use app\admin\middleware\LoginMiddleware;
use app\admin\middleware\AuthMiddleware;
use app\admin\middleware\OperationLog;

Route::group('diy', function () {
    //获取首页数据
    Route::get('getHomePageData', 'diy.Diy/getHomePageData');
    //设置首页数据
    Route::post('setHomePageData', 'diy.Diy/setHomePageData');

    //获取个人中心数据
    Route::get('getPersonCenterData', 'diy.Diy/getPersonCenterData');
    //设置个人中心数据
    Route::post('setPersonCenterData', 'diy.Diy/setPersonCenterData');

    //获取客服页面数据
    Route::get('getServicePageData', 'diy.Diy/getServicePageData');
    //设置客服页面数据
    Route::post('setServicePageData', 'diy.Diy/setServicePageData');

    //获取样式数据
    Route::get('getStyleData', 'diy.Diy/getStyleData');
    //设置样式数据
    Route::post('setStyleData', 'diy.Diy/setStyleData');

    //获取底部导航数据
    Route::get('getTabbarData', 'diy.Diy/getTabbarData');
    //设置底部导航数据
    Route::post('setTabbarData', 'diy.Diy/setTabbarData');

})->middleware([
    LoginMiddleware::class,
    AuthMiddleware::class,
    OperationLog::class
]);

Route::group('link', function () {
    //链接列表
    Route::get('list', 'diy.Link/list');
})->middleware([
    LoginMiddleware::class,
    AuthMiddleware::class,
    OperationLog::class
]);